# -*- python -*-
# ex: set syntax=python:
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

def windows():
  cq_slaves = (range(158, 162) + range(182, 184) + range(231, 234) +
               range(235, 252) + range(318, 338) + range(399, 407) +
               range(422, 425) + range(502, 504) + range(519, 521) +
               range(750, 782) + [197, 202, 224, 228, 341, 426, 497])
  cq_builders = [
      'win_chromium_compile_dbg_ng',
      'win_chromium_rel_ng',
      'win_chromium_x64_rel_ng',
  ]

  optional_slaves = [177, 187, 192]
  optional_builders = [
      'win_chromium_compile_rel_ng',
      'win_chromium_dbg_ng',
      'win_chromium_gn_x64_dbg',
      'win_chromium_gn_x64_rel',
      'win_chromium_vista_rel_ng',
      'win_chromium_x64_dbg',
      'win_chromium_xp_rel_ng',
      'win_nacl_sdk',
      'win_nacl_sdk_build',
  ]

  cq_pool = [
    {
      'master': 'TryServerChromiumWin',
      'builder': cq_builders,
      'hostname': 'vm%d-m4' % number,
      'os': 'win',
      'version': 'win7',
      'bits': '64',
    } for number in cq_slaves
  ]
  optional_pool = [
    {
      'master': 'TryServerChromiumWin',
      'builder': optional_builders,
      'hostname': 'vm%d-m4' % number,
      'os': 'win',
      'version': 'win7',
      'bits': '64',
    } for number in optional_slaves
  ]
  win8_slaves = [
    {
      'master': 'TryServerChromiumWin',
      'builder': [
        'win8_chromium_dbg', 'win8_chromium_rel', 'win8_chromium_ng',
        'win8_chromium_gn_dbg', 'win8_chromium_gn_rel',
        'win8_chromium_gn_upload',
      ],
      'hostname': 'vm%d-m4' % number,
      'os': 'win',
      'version': 'win8',
      'bits': '64',
    } for number in ([115, 168] + range(384, 399) +
                     range(408, 422) + range(468, 495))
  ]
  win_pgo_slave = [
    {
      'master': 'TryServerChromiumWin',
      'builder': ['win_pgo'],
      'hostname': 'build44-m4',
      'os': 'win',
      'version': 'win7',
      'bits': '64',
    }
  ]

  experimental_builders = [
    'win_chromium_compile_dbg_ng_exp',
    'win_chromium_rel_ng_exp',
    'win_chromium_x64_rel_ng_exp',
  ]
  experimental_slave = [
    {
      'master': 'TryServerChromiumWin',
      'builder': experimental_builders,
      'hostname': 'slave%d-c4' % number,
      'os': 'win',
      'version': 'win7',
      'bits': '64',
    } for number in range(0, 50)
  ]

  return (
      cq_pool +
      optional_pool +
      win8_slaves +
      win_pgo_slave +
      experimental_slave)


slaves = windows()
